package com.mvu.banana.common.shared;

import com.google.gwt.i18n.client.DateTimeFormat;

import java.util.Date;

/**
 */
public class CommonDateUtil {
  public static final CommonDateUtil get = new CommonDateUtil();

  public int getCurrentYear(){
    DateTimeFormat format = DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.YEAR);
    int thisYear = Integer.parseInt(format.format(new Date()));
    return thisYear;
  }
}
